package com.sky.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "笔记信息返回的数据格式")
public class ReviewVO {
    @ApiModelProperty("主键值")
    private String id;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("评分")
    private Integer rating;
    @ApiModelProperty("发布状态")
    private Integer status;
    @ApiModelProperty("点赞数")
    private Integer likeCount;
    @ApiModelProperty("评论数")
    private Integer commentCount;
    @ApiModelProperty("分享数")
    private Integer shareCount;
    @ApiModelProperty("收藏数")
    private Integer collectCount;
    @ApiModelProperty("是否点赞")
    private Boolean isLiked;
    @ApiModelProperty("是否收藏")
    private Boolean isCollected;
    @ApiModelProperty("作者")
    private AuthorVO author;
    @ApiModelProperty("图书")
    private BookVO book;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("修改时间")// 使用Date类型存储ISO时间
    private Date updateTime;
}
